package pl.edu.agh.nn.functions;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@XStreamAlias("function")
public interface IActivationFunction {

	public double compute(double x);

	/**
	 * Computes own derivative based on own value.
	 * 
	 * @param cx
	 *            a value of this function for some input x
	 * @return a value of derivative of this function for input x
	 */
	public double deriveComputation(double x);

}
